<table class="content" cellpadding="0" cellspacing="0">         	
    <tr>
    <tr>
  	<td class="content_title_top">
        <div align="left">
        <a href="<?php echo $this->site['base_url']?>product"><?php echo Kohana::lang('product_lang.tt_page') ?>&nbsp;</a>
        <a href="<?php echo $this->site['base_url']?>product/cat/<?php echo $mr['master_categories_id']?>">&gt;&gt;&nbsp;<?php echo $mr['categories_name'] ?></a>
        <?php if(isset($mr['products_serial_number']) && $mr['products_serial_number'])?><a href="<?php echo $this->site['base_url']?>product/detail/<?php echo $mr['products_id']?>">&gt;&gt;&nbsp;<?php echo $mr['products_serial_number'] ?></a>
        </div>
  	</td>
  	</tr>
 	<tr>
    <td class="content_middle">            	
        <div class="div_content">
        <table class="product" align="center" cellpadding="0" cellspacing="0">
        <tr><td>
        <div style="width:200px;padding:0px 10px 5px 10px;float:left" align="center">
        <?php
            if($mr['products_image'] == ""){
            	$image = "".url::base()."uploads/product/may.png";
            } else {
            	$image = "".url::base()."uploads/product/".$mr['products_image']."";
            }
        ?>         
        <div style="padding-top:5px;"><img class="detail_img" src="<?php echo $image ?>"/></div>        
        <div>
                <?php if($mr['products_image2'] !="" || $mr['products_image3'] !="" || $mr['products_image4'] !=""){ ?>
                <a href="javascript:showDialog('<?php echo $this->site['base_url']?>image_popup/show/<?php echo $mr['products_id'];?>',550,480)">
                <?php echo Kohana::lang('product_lang.lbl_preview')?></a>
                <?php } ?>
        </div>
        </div>
        <div style="padding-left:200px;" align="left">                
        <div style="padding-left:2px;padding-right:15px;padding-top:5px;"> 
        <div align="left" class="detail_name"><?php echo $mr['products_name'] ?></div>        
        <form name="frm_detail" method="post" action="<?php echo $this->site['base_url'].'shoppingcart/add/'.$mr['products_id'] ?>" >
        <input type="hidden" name="hd_item_id" id="hd_item_id" value="<?php echo $mr['products_id'] ?>" />        
		  <?php if($mr['price'] =="" || $mr['price'] == 0) { ?>
                <div class='price' style='padding-top:7px;text-align:left;'><span class="price"><?php echo Kohana::lang('product_lang.lbl_call') ?></span></div>
          <?php } else {
                    $price= $mr['price'];
                    if($mr['products_sale_price'] >= $price || $mr['products_sale_price'] == 0) { ?>
                    <div style="text-align:left;" >
                        <?php echo Kohana::lang('product_lang.lbl_price')?>:&nbsp;
                  		<span class="price"><?php echo $this->format_currency($mr['price'],$this->site['site_currency'])?>&nbsp;</span>
                        </div>
                        <div style="padding-top:5px;text-align:left;"> 
                        <?php echo Kohana::lang('product_lang.lbl_qty')?>:&nbsp;
                        <input name="txt_item_qty" type="text" id="txt_item_qty" style="text-align:right" value="1" size="2" maxlength="3"/>
                    	<input type="submit" class="button" align="center" value="<?php echo Kohana::lang('product_lang.btn_buy') ?>"/>
                    </div>
                    <?php
                    } else { ?>                     
                        <div align="left" class="price"><span class="price_detail">
                          <strike style="color:#000"><?php echo $this->format_currency($price,$this->site['site_currency'])?></strike>
                        </span></div>
                        <?php echo Kohana::lang('product_lang.lbl_price') ?>:&nbsp;
                        <div class="price" style="text-align:left;">
                            <span class="price_detail"><?php echo $this->format_currency($mr['products_sale_price'],$this->site['site_currency'])?></span>
                        </div>
                        <?php echo Kohana::lang('product_lang.lbl_qty')?>:&nbsp;
                        <input name="txt_item_qty" type="text" id="txt_item_qty" style="text-align:right" value="1" size="2" maxlength="3"/>
                        <div class="buy" style="padding-top:5px;text-align:left;"><span class="price" style="padding-top:5px;text-align:left;">
                          <input type="submit" class="button" align="center" value="<?php echo Kohana::lang('product_lang.btn_buy') ?>"/>
                        </span></div>	
                   <?php }  ?>
            <?php } // end else ?>
        </form>
        <?php if(isset($mr['products_summary']) && $mr['products_summary']){ ?>
        <div style="height:5px;border-bottom:1px dotted #CCCCCC;">&nbsp;</div>
        <div class="desc" style="padding-top:7px;"> 
         	<?php echo $mr['products_summary'] ?>
        </div>
        <?php } ?>
        </div>
        </div>
        </td></tr>
        </table>
        </div>          
    <!--<div style="clear:both;padding-left:15px;padding-bottom:10px;color:#EA9000;"><b><?php //echo Kohana::lang('product_lang.lbl_refercategory')?></b>	</div>
        <table>            	
            <tr>
            <td>
                <?php //require('list_recommend.php'); ?>                    
            </td>
            </tr>
        </table> -->  
    </td>
    </tr>
  <tr>
    <td class="content_bottom">&nbsp;</td>
  </tr>
</table>
<script type="text/javascript" src="<?php echo $this->site['base_url']?>plugins/popup.js"></script>
<script type="text/javascript" src="<?php echo $this->site['base_url']?>themes/plugins/product/lightbox.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->site['base_url']?>themes/style1/product/lightbox.css" media="screen" />
<script type="text/javascript">
    $(function() {
        $('#gallery a').lightBox();
    });
</script>